local _M = {}

function _M.handle(request, next)
    if not request:user() then
        return ngx.redirect("/login")
    end
    return next(request)
end

return _M